3.351 \(\int (a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)} \, dx\)

Optimal. Leaf size=43 \[ \frac {c \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}} \]

[Out]

1/2*c*cos(f*x+e)*(a+a*sin(f*x+e))^(3/2)/f/(c-c*sin(f*x+e))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.08, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.033, Rules used = {2738} \[ \frac {c \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}} \]

Antiderivative was successfully verified.

[In]

Int[(a + a*Sin[e + f*x])^(3/2)*Sqrt[c - c*Sin[e + f*x]],x]

[Out]

(c*Cos[e + f*x]*(a + a*Sin[e + f*x])^(3/2))/(2*f*Sqrt[c - c*Sin[e + f*x]])

Rule 2738

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[
(-2*b*Cos[e + f*x]*(c + d*Sin[e + f*x])^n)/(f*(2*n + 1)*Sqrt[a + b*Sin[e + f*x]]), x] /; FreeQ[{a, b, c, d, e,
 f, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[n, -2^(-1)]

Rubi steps

\begin {align*} \int (a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)} \, dx &=\frac {c \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.21, size = 60, normalized size = 1.40 \[ -\frac {a \sec (e+f x) \sqrt {a (\sin (e+f x)+1)} \sqrt {c-c \sin (e+f x)} (\cos (2 (e+f x))-4 \sin (e+f x))}{4 f} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + a*Sin[e + f*x])^(3/2)*Sqrt[c - c*Sin[e + f*x]],x]

[Out]

-1/4*(a*Sec[e + f*x]*(Cos[2*(e + f*x)] - 4*Sin[e + f*x])*Sqrt[a*(1 + Sin[e + f*x])]*Sqrt[c - c*Sin[e + f*x]])/
f

________________________________________________________________________________________

fricas [A]  time = 0.42, size = 61, normalized size = 1.42 \[ -\frac {{\left (a \cos \left (f x + e\right )^{2} - 2 \, a \sin \left (f x + e\right ) - a\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{2 \, f \cos \left (f x + e\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(3/2)*(c-c*sin(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

-1/2*(a*cos(f*x + e)^2 - 2*a*sin(f*x + e) - a)*sqrt(a*sin(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c)/(f*cos(f*x +
 e))

________________________________________________________________________________________

giac [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(3/2)*(c-c*sin(f*x+e))^(1/2),x, algorithm="giac")

[Out]

Exception raised: NotImplementedError >> Unable to parse Giac output: Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check si
gn: (4*pi/x/2)>(-4*pi/x/2)sqrt(2*a)*sqrt(2*c)*(-2*a*f*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp
(1))-1/4*pi))*sin(f*x+exp(1))/(2*f)^2+8*a*f*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4*p
i))*cos(2*f*x+2*exp(1))/(8*f)^2)

________________________________________________________________________________________

maple [A]  time = 0.30, size = 63, normalized size = 1.47 \[ -\frac {\sqrt {-c \left (\sin \left (f x +e \right )-1\right )}\, \left (a \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {3}{2}} \sin \left (f x +e \right ) \left (-1-\left (\cos ^{2}\left (f x +e \right )\right )+\sin \left (f x +e \right )\right )}{2 f \cos \left (f x +e \right )^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sin(f*x+e))^(3/2)*(c-c*sin(f*x+e))^(1/2),x)

[Out]

-1/2/f*(-c*(sin(f*x+e)-1))^(1/2)*(a*(1+sin(f*x+e)))^(3/2)*sin(f*x+e)*(-1-cos(f*x+e)^2+sin(f*x+e))/cos(f*x+e)^3

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {3}{2}} \sqrt {-c \sin \left (f x + e\right ) + c}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(3/2)*(c-c*sin(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate((a*sin(f*x + e) + a)^(3/2)*sqrt(-c*sin(f*x + e) + c), x)

________________________________________________________________________________________

mupad [B]  time = 7.35, size = 71, normalized size = 1.65 \[ -\frac {a\,\sqrt {a\,\left (\sin \left (e+f\,x\right )+1\right )}\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}\,\left (\cos \left (e+f\,x\right )+\cos \left (3\,e+3\,f\,x\right )-4\,\sin \left (2\,e+2\,f\,x\right )\right )}{4\,f\,\left (\cos \left (2\,e+2\,f\,x\right )+1\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*sin(e + f*x))^(3/2)*(c - c*sin(e + f*x))^(1/2),x)

[Out]

-(a*(a*(sin(e + f*x) + 1))^(1/2)*(-c*(sin(e + f*x) - 1))^(1/2)*(cos(e + f*x) + cos(3*e + 3*f*x) - 4*sin(2*e +
2*f*x)))/(4*f*(cos(2*e + 2*f*x) + 1))

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}} \sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))**(3/2)*(c-c*sin(f*x+e))**(1/2),x)

[Out]

Integral((a*(sin(e + f*x) + 1))**(3/2)*sqrt(-c*(sin(e + f*x) - 1)), x)

________________________________________________________________________________________